import './index.less'
import { LeftOutlined } from '@ant-design/icons';
import { Button} from 'antd';
import { isEmpty } from 'lodash';
export default function Header(props) {
  const onRelease = () => {
    console.log(props.config)
  }
  return (
    <div className='hearder'>
      <LeftOutlined style={{ color: '#fff', fontSize: '32px', marginLeft: '20px' }} />
      <div style={{ marginRight: '20px' }}>
        <Button disabled={!isEmpty(props.config)} onClick={props.onCreated} style={{ marginRight: '32px' }}>创建</Button>
        <Button onClick={onRelease}>发布</Button>
      </div>
    </div>
  )
}
